<extend name="Public:common" />
<block name="main">
<div class="gallery">
   <div class="col-md-offset-2">
   <h2><strong>订单确认</strong></h2>
    <hr style="width:80%" class="col-md-offset-0"/>
    <h5><strong>请您再次校对您的订单信息和联系方式，以便我们能够准确为您邮寄兑换的礼品，礼品将会在人工审核后寄出。</strong></h5><br/>
	
	<form method="post" action="{:U('gift/add')}">
	   <div class="form-group">
        <label>姓名：</label>
		<foreach name="info" item="v">
        <input type="text" name="realname"  class="form-control" style="width:50%" value="{$v.realname}">
		</foreach>
	   </div>
	   <div class="form-group">
        <label>邮编：</label>
		<foreach name="info" item="v">
        <input type="text" name="zipcode" class="form-control" style="width:50%" value="{$v.zipcode}">
		</foreach>
	   </div>
	   <div class="form-group">
        <label>住址：</label>
		<foreach name="info" item="v">
        <input type="text" name="location" class="form-control" style="width:50%" value="{$v.location}">
		</foreach>
	   </div>
	   <div class="form-group">
        <label>电话：</label>
		<foreach name="info" item="v">
        <input type="text" name="tel"  class="form-control" style="width:50%" value="{$v.tel}">
		</foreach>
	   </div>
	   <div class="form-group">
        <label>支付宝账号：</label>
		<foreach name="info" item="v">
        <input type="text" name="alipay"  class="form-control" style="width:50%" value="{$v.alipay}">
		</foreach>
	   <div class="form-group">
		<label>礼品名称：</label>
		<foreach name="gift" item="g">
        <input type="text" name="gid"  class="form-control" style="width:50%" value="{$g.title}">
		</foreach>
	   </div>
	   <div class="form-group">
        <input type="text" name="username"  class="form-control" style="display:none; width:50%" value="<?php echo session('username')?>">
	   </div>
		<button type="submit" class="btn btn-default">提交</button>
	</form>
	
</div>
</block>